<?php echo module_open(); ?>
<tr class="show980">
	<td class="head" colspan="7">Tùy chọn xem</td>
</tr>
<tr class="show980">
	<td class="fr page" colspan="7">
		<?php echo $page_list ?>
	</td>
</tr>
<tr>
	<?php if ($GLOBALS['per']['del']) echo '<td class="head center" width="1%"><input type="checkbox" class="checkAll" /></td>'; ?>
	<td class="head center" width="3%">#</td>
	<?php if($user == 1) { ?><td class="head" width="15%">Nhân viên</td><?php } ?>
	<td class="head hide980" width="10%">IP</td>
	<td class="head hide480" width="25%">Thời gian tiến hành</td>
	<td class="head">Công việc</td>
	<?php if($GLOBALS['per']['del']) { ?><td class="head" width="1%"><b>&nbsp;</b></td><?php } ?>
</tr>
<?php
if(count($userlogs) && is_array($userlogs))
{
	$i = 1;
	foreach ($userlogs as $row)
	{
?>
<tr class="highlight<?php echo ($row['isnew'] ? ' table-flag-red' : '') ?>" id="<?php echo $row['id'] ?>" name="<?php echo $row['log'] ?>">
	<?php if ($GLOBALS['per']['del']) echo '<td class="fr center">'.sel_item($row['id']).'</td>'; ?>
	<td class="fr center"><?php echo stt($row['id'], $GLOBALS['var']['rowstart'] + $i++) ?></td>
		<?php
		if ($user == 1)
		{
			echo '<td class="fr">'.$row['name'].'</td>';
		}
		?>
	<td class="fr hide980"><?php echo $row['ip'] ?></td>
	<td class="fr hide480"><?php echo strftime(TIME_STR, strtotime($row['date_added'])) ?></td>
	<td class="fr"><?php echo $row['log'].' '.$row['log_val'] ?></td>
	<?php if($GLOBALS['per']['del']) echo '<td class="fr">'.remove_link($row['id']).'</td>'; ?>
</tr>
<?php
	}
}
else
{
	echo no_data_mes(7);
}
echo module_close();
?>